module.exports = {
  lintOnSave: process.env.NODE_ENV !== 'production',
  css: {
    loaderOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
  devServer: {
    proxy: {
      '^/api': {
        target: 'http://localhost:53828/',
        ws: true,
        changeOrigin: true
      }
    }
  },
  chainWebpack: (config) => {
    config.plugin('html')
      .tap((args) => {
        args[0].title = '产品分布';
        return args;
      });
  }
};
